import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/style/global.css'
import './permission'
import './assets/icons/index'
import 'element-ui/lib/theme-chalk/index.css';
import { handleTree } from "@/utils/validate";
// 导入工具
import { parseTime } from "@/utils/ruoyi";
// 导入字典
import { getDictByType as getDicts } from './api/common'
// 字典数据组件
import DictData from '@/components/Dict/DictData'
// 字典标签组件
import DictTag from '@/components/Dict/DictTag'
import modal from './utils/modal'
Vue.config.productionTip = false
Vue.prototype.$modal = modal
Vue.prototype.handleTree = handleTree
// 声明字典
Vue.prototype.Dicts = getDicts
Vue.prototype.parseTime = parseTime

import Element from 'element-ui'
Vue.component('DictTag', DictTag)
DictData.install()
Vue.use(Element)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
